package com.tsj.spzx.order;

import com.tsj.spzx.annotation.EnableUserTokenFeignInterceptor;
import com.tsj.spzx.annotation.EnableUserWebMvcConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableFeignClients(basePackages = "com.tsj.spzx")
// openFeign在远程调用时会失去请求头，我们写一个OpenFeign的拦截器（在spzx-common的common-service包中），将其在注解中引入，这样远程调用就可以使用请求头了
@EnableUserTokenFeignInterceptor
@EnableUserWebMvcConfiguration
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }
}
